home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / bin / sensible-pager < prev    next >
Text File  |  2009-02-16  |  288b  |  14 lines

  1. #!/bin/sh
  2.  
  3. ${PAGER:-pager} "$@"
  4. ret="$?"
  5. if [ "$ret" -eq 126 ] || [ "$ret" -eq 127 ]; then
  6. more "$@"
  7. ret="$?"
  8.     if [ "$ret" -eq 126 ] || [ "$ret" -eq 127 ]; then
  9.         echo "Couldn't find a pager!" 1>&2
  10.         echo "Set the \$PAGER environment variable to your desired pager." 1>&2
  11.         exit 1
  12.     fi
  13. fi
  14.